package com.tahado.model;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class User {
    public User(String name, String accesstoken, String facebookId) {
        this.name = name;
        this.accesstoken = accesstoken;
        this.facebookId = facebookId;
    }
    
	@PrimaryKey
	  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	  private Long id;

	  @Persistent
	  private String accesstoken;

	  @Override
	public String toString() {
		return "User [id=" + id + ", accesstoken=" + accesstoken
				+ ", facebookId=" + facebookId + ", name=" + name + "]";
	}
	@Persistent
	  private String facebookId;
	  
	  @Persistent
	  private String name;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAccesstoken() {
		return accesstoken;
	}

	public void setAccesstoken(String accesstoken) {
		this.accesstoken = accesstoken;
	}

	public String getFacebookId() {
		return facebookId;
	}

	public void setFacebookId(String facebookId) {
		this.facebookId = facebookId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	  
	  
}